import { useState } from 'react'
import { createContainer } from 'unstated-next'

const useStore = () => {
  const [data, setData] = useState<{
    importType: 'file' | 'text'
  }>({
    importType: 'file'
  })
  return { data, setData }
}

export default createContainer(useStore);